#include "randomaiplugin.h"

RandomAIPlugin::RandomAIPlugin() : plugin_name(L"Random AI")
{

}

std::wstring RandomAIPlugin::GetAIPluginName()
{
    return plugin_name;
}

void RandomAIPlugin::SetColor( long color )
{
    chess_color = color;
}

void RandomAIPlugin::SetSearchDepth( long depth )
{
    search_depth = depth;
}

Move RandomAIPlugin::GenerateMove( Byte matrix[15][15], Move last_move )
{
    int x = rand() % 15;
    int y = rand() % 15;

    while (0 != matrix[y][x]) {
        x = rand() % 15;
        y = rand() % 15;
    }

    Move move = {x, y};
    return move;
}